<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
<base href="${cxt}/">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>首页</title>
</head>
<body>
	<jsp:include page="../public/header.jsp">
		<jsp:param value="0" name="index"/>
	</jsp:include>
	${zhuye }<br>
	<!-- 是否登录 -->
	<c:if test="${empty user }" var="u">
		<a href="/fuhe/login">登录</a>|
		<a href="/fuhe/register">注册</a>
	</c:if>
	<!-- 已登录 -->
	<c:if test="${!u }">
		<span>欢迎您</span>
		${user.name }
		|<a href="/fuhe/exitservlet">退出</a>
	</c:if>
	<jsp:include page="../public/footer.jsp">
		<jsp:param value="0" name="index"/>
	</jsp:include>
</body>
</html>